﻿function validateAccess() {
    if (navigator.appName == 'Netscape') {
        var nl = navigator.language;
    }
    else {
        var nl = navigator.browserLanguage;

    }

    if (nl.indexOf('zh') >= 0) {
        if (window.location.href.indexOf('login') < 0 && window.location.href.indexOf('register') < 0) {
            window.location.href = '/login';
        }
    }
    else if (nl.indexOf('en') >= 0)
    {
        
    }
}
validateAccess();
